﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using VisualAgile.Model;

namespace VisualAgile.Web.Tests
{
    class FakeStoryData
    {
        public static List<Story> CreateTestStorys()
        {
            List<Story> storys = new List<Story>() {                 
                DefaultStory(),
                DemoStory()              
            };

            for (int i = 0; i < 10; i++)
            {
                Story sampleStory = new Story()
                {
                    StoryID = Guid.NewGuid(),
                    IterationID = "2EBDBC36-3585-47b3-8709-BE3184956938",
                    Name = "New Story",
                    Primary = true,
                    Size = 20.0F,
                    CreateTime = DateTime.Now
                };

                storys.Add(sampleStory);
            }

            return storys;
        }
        
        public static Story DemoStory()
        {                        
            Story demo = new Story()
            {
                StoryID = new Guid("29DC7A46-52B5-4941-AAE2-F48592847E42"),
                IterationID = "29DC7A46-52B5-4941-AAE2-F48592847E42",
                Name = "demo story",                
                Primary = true,
                Size = 1.0F,      
                CreateTime = DateTime.Now                
            };

            //demo.Feature = FakeFeatureData.DemoFeature();

            return demo;
        }

        public static Story DefaultStory()
        {
            Story Default = new Story()
            {
                StoryID = new Guid("BE4B0656-8685-439e-B4EA-66D5C9BA7508"),
                IterationID = "BE4B0656-8685-439e-B4EA-66D5C9BA7508",
                Name = "default Story",
                Primary = true,
                Size = 20.0F,      
                CreateTime = DateTime.Now
            };

            Default.Feature = FakeFeatureData.DefaultFeature();

            return Default;
        }      
    }
}
